package com.syaccp.controller;


import com.syaccp.model.Staff;
import com.syaccp.service.StaffService;
import com.syaccp.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * 制作人员表控制器
 *
 * @author Lyh
 * @since 2023-07-27
 */
@RestController
@CrossOrigin
@RequestMapping("/api/staff")
@Api(tags = "制作人员表控制器")
public class OrderStaffController {

    @Resource
    StaffService staffService;

    @ApiOperation(value = "获取制作人员列表")
    @RequestMapping(value = "/getStaffInfo", method = RequestMethod.GET)
    public Result<List<Staff>> queryStaffInfo() {
        return Result.success(staffService.queryStaffInfo());
    }
}
